<script lang="ts" setup>
	import { computed, getCurrentInstance, inject, useAttrs } from 'vue';

	const instance = getCurrentInstance()
	const props = defineProps<{ title : string }>()
	const tabs = inject<any>("tabs", [])
	const key = computed(() => instance?.vnode.key as string | number);
	tabs.value.push({
		key: key.value,
		title: props.title,
	})
</script>

<template>
	<view class="um-tab-pane">
		<slot></slot>
	</view>
</template>

<style>
</style>